![]() |
PATH![]() |
![]() ![]() |
AppleScript supplies several constants you can use when working with date and time values:
The number of seconds, respectively, in a minute, hour, day, and week.
date "September 13, 1998" + 4 * days + 3 * hours + 2 * minutes
--result: date "Thursday, September 17, 1998 3:02:00 AM"
The days of the week. Use the identifier weekday to extract a day of the week from a date.
set theDate to current date --using scripting addition command
--result: date "Saturday, February 27, 1999 3:37:50 PM"
weekday of theDate --result: Saturday
The months of the year. Use the identifier month to extract a month from a date.
month of theDate --result: February
For more information on working with date and time values, see Date and Date-Time Arithmetic.